Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Read cloud sdk active_config file to determine the right config file to read - #57

Merged
theacodes merged 2 commits into
masterfrom
fix-gcloud-active-config
Oct 26, 2016
Merged

theacodes merged 2 commits into
masterfrom
fix-gcloud-active-config

Conversation

@theacodes

Copy link
Copy Markdown
Contributor

Fixes #53

@theacodes theacodes added this to the 1.0.0 milestone Oct 26, 2016
Comment thread google/auth/_cloud_sdk.py
return 'default'

with io.open(active_config_filename, 'r', encoding='utf-8') as file_obj:
active_config_name = file_obj.read().strip()

This comment was marked as spam.

This comment was marked as spam.

Comment thread tests/test__cloud_sdk.py
@pytest.fixture
def config_file(config_dir):
config_file = py.path.local(_cloud_sdk._get_config_file(
str(config_dir), 'default'))

This comment was marked as spam.

This comment was marked as spam.

@theacodes
theacodes merged commit 80f7ff2 into master Oct 26, 2016
@theacodes
theacodes deleted the fix-gcloud-active-config branch October 26, 2016 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants